package com.lrl.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {
    private String account;//账号
    private String password;//密码
    private Integer sex;//性别
    private Date birth;//管理员创建日期
    private String description;//管理员的描述
    private Date recentLogin;//最近登录时间
    private String name;//昵称
    private String role;//权限角色

    public Admin(String account, String password, Integer sex, Date birth, String role) {
        this.account = account;
        this.password = password;
        this.sex = sex;
        this.birth = birth;
        this.role = role;
    }
}
